package com.wechat.service.cmds;

import com.swak.router.Route;
import com.wechat.command.Command;
import com.wechat.network.NetworkChannel;

import lombok.Getter;

@Getter
public class CmdRoute extends Route {

	private final Command command;
	private final NetworkChannel channel;

	public CmdRoute(NetworkChannel channel, Command command) {
		super(command.getCommand().name());
		this.command = command;
		this.channel = channel;
	}
}
